package com.campus.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Builder;

import java.time.LocalDateTime;

/**
 * 图书馆自习室实体类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class StudyRoom {
    private Long id;

    private String name;

    private String location;

    private Integer status; // 1: 正常, 0: 被预约

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 预约用户的 id
     */
    private Long userId;



}